﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}

<blockquote class="layui-elem-quote news_search toolList" id="menus">
</blockquote>
<div class="layui-row">
    <div class="layui-col-xs2">
        <input type="text" class="layui-input" id="plan" name="plan" style="width:200px" value="20190520至20190526" />
    </div>
    <div class="layui-col-xs2">
        <button class="layui-btn" id="searchbtn">查看</button>
    </div>
    <div class="layui-col-xs2">
        <button class="layui-btn layui-btn-danger" id="picCrop">截图</button>
    </div>
    <div class="layui-col-xs10">
    </div>
</div>
        <div class="layui-row">
            <div class="layui-col-sm2">
                <ul id="tree" class="ztree"
                    style="padding: 2px; border: 1px solid #ddd; overflow: auto;"></ul>
            </div>

            <div class="layui-col-sm10" id="contentHtml">

            </div>
        </div>

        <script type="text/html" id="barList">
            <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
        </script>


        <!--添加/编辑窗口-->
        <div id="divEdit" style="display: none;width:90%;" class="center-align">
            <form class="layui-form layui-form-pane" action="" id="formEdit">
                <br />
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">选择用户</label>
                    <div class="layui-input-inline">
                        <select name="UserId" id="UserId" lay-filter="UserId" v-model="UserId" required lay-verify="required"></select>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        <input type="text" name="Content" v-model="Content" required lay-verify="required"
                               placeholder="内容" autocomplete="off" class="layui-textarea">
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">创建日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="CreateTime" id="CreateTime" v-model="CreateTime" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item" pane>
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="Remark" v-model="Remark"
                               placeholder="备注" autocomplete="off" class="layui-textarea">
                    </div>
                </div>


                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>

        <script id="tplScript" type="text/html">
             
            <div id="cdiv"  style="padding: 20px; background-color: #F2F2F2;overflow-x:scroll;overflow-y:scroll; " >
                <table class="" id="tableContent"    >
                    {{# layui.each(d.data, function(index,item){ }}
                    <tr>
                        <td width="220px" align="center" valign="middle" class="layui-bg-gray"> {{ item.OrgName }} </td>


                        {{#  layui.each(item.data, function(index2, item2){ }}
                    <td valign="top">
                        <table class="layui-table" style="width:300px; border:1 solid #000000"  >
                            <tr><td width="300px" style="max-width:300px!important" valign="top" align="left">{{item2.UserName}}-{{item2.Title}}</td>  </tr>
                            <tr><td width="300px" style="height:200px" valign="top" align="left">{{item2.Content}}</td>  </tr>
                            <tr><td width="300px" style="font-weight:600; color:red" valign="top" align="left">{{item2.Results==0?'':item2.Results}}</td>  </tr>
                        </table>
                    </td>
                            {{#  }) }}

                       

                    </tr>
                     
                    {{#  }) }}

                </table>
            </div>

        </script>
        <script type="text/javascript" src="/layui/layui.js"></script>
        <script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script><!--生成图片-->
        <script type="text/javascript" src="/userJs/worknoteplanslistSum.js"></script>

